<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form method="post" action="?" id="dform" onsubmit="return check();" enctype="multipart/form-data">
    <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
    <input type="hidden" name="file" value="<?php echo $file;?>"/>
    <input type="hidden" name="action" value="<?php echo $action;?>"/>
    <input type="hidden" name="forward" value="<?php echo $forward;?>"/>
    <input type="hidden" name="itemid" value="<?php echo $itemid;?>"/>

    <div class="tt"><?php echo $tname;?></div>
    <table cellpadding="2" cellspacing="1" class="tb">
	    <tr>
		    <td class="tl"><span class="f_red">*</span> 所属分类</td>
		    <td><?php echo Post::catTree('post[catid]', $moduleid, '选择分类' ,$catid, 'datatype="n" nullmsg="请选择分类"');?></td>
	    </tr>



	    <tr>
		    <td class="tl"><span class="f_red">*</span> 图片名称</td>
		    <td>
			    <input type="text" name="post[title]" size="50" value="<?php echo $title;?>" />
		    </td>
	    </tr>
	    <tr>
		    <td class="tl"><span class="f_hid">*</span> 标题图片</td>

            <td><?php echo Post::picture($moduleid, 'thumb', 'post[thumb]', $thumb, $MOD['thumb_width'], $MOD['thumb_height']);?></td>


	    </tr>
        <tr>
            <td class="tl"><span class="f_hid">*</span> 图片描述</td>
            <td><textarea cols="60" rows="4" name="post[introduce]"><?php echo  $introduce;?></textarea></td>
        </tr>

        <tr>
            <td class="tl"><span class="f_hid">*</span>链接地址</td>
            <td>
                <input type="text" name="post[linkurl]" value="<?php echo $linkurl;?>" />
            </td>
        </tr>
    </table>
    <div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
</form>
    <script>
        seajs.use(['$', 'vf', 'vf-css', 'easyui','easyui-css'])
    </script>
<?php include tpl('footer'); ?>